package com.youyou.fusheng2.View.Activity;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.youyou.fusheng2.R;

public class mine_public extends AppCompatActivity implements View.OnClickListener {

    private ImageView      home_back;
    private TextView       home_tetle;
    private TextView       mine_item_tv;
    private TextView       mine_item_tv1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        int id = getIntent().getIntExtra("id", 0);
        if (id == 2) {
            setContentView(R.layout.mineyinsi_activity);
            initView(2);
        } else {
            setContentView(R.layout.update_app);
            initView(3);
        }
    }

    private void initView(int i) {
        if (i == 2) {
            home_back = (ImageView) findViewById(R.id.home_back);
            home_back.setVisibility(View.VISIBLE);
            findViewById(R.id.home_sousuo).setVisibility(View.GONE);
            home_tetle = (TextView) findViewById(R.id.home_tetle);
            home_tetle.setText("隐私");
        } else {
            home_back = (ImageView) findViewById(R.id.home_back);
            home_back.setVisibility(View.VISIBLE);
            findViewById(R.id.home_sousuo).setVisibility(View.GONE);
            home_tetle = (TextView) findViewById(R.id.home_tetle);
            home_tetle.setText("更新");
        }
        home_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {

            case R.id.mine_item_tv:

                break;


            case R.id.mine_item_tv1:

                break;
        }
    }

}